% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:22:16 2025
\begin{table}[ht]
\centering
\scalebox{0.6}{
\begin{scriptsize}
\begin{tabular}{rrrrrrrrrrrrrrrrrrrrr}
  \hline
 & Ayotte '10 & Binnie '10 & Lamontagne '10 & Huntsman '12 & Romney '12 & Gingrich '12 & Paul '12 & Santorum '12 & Bush '16 & Trump '16 & Cruz '16 & Kasich '16 & Rubio '16 & Bolduc '20 & Messner '20 & Bolduc '22 & Smith '22 & Morse '22 & Haley '24 & Trump '24 \\ 
  \hline
Romney '08 & -0.091 & -0.108 & \cellcolor{gray!80}0.208 & -0.181 & \cellcolor{gray!110}0.732 & \cellcolor{gray!30}-0.232 & \cellcolor{gray!60}-0.478 & -0.121 & -0.159 & 0.063 & -0.035 & -0.051 & 0.158 & -0.009 & 0.129 & \cellcolor{gray!30}-0.241 & 0.178 & \cellcolor{gray!80}0.212 & 0.116 & -0.079 \\ 
  Huckabee '08 & 0.134 & \cellcolor{gray!30}-0.325 & 0.139 & \cellcolor{gray!30}-0.223 & \cellcolor{gray!60}-0.465 & \cellcolor{gray!80}0.242 & \cellcolor{gray!80}0.367 & \cellcolor{gray!80}0.357 & -0.153 & 0.077 & \cellcolor{gray!110}0.440 & \cellcolor{gray!30}-0.294 & -0.113 & 0.066 & -0.060 & \cellcolor{gray!80}0.284 & 0.109 & \cellcolor{gray!60}-0.429 & \cellcolor{gray!60}-0.486 & \cellcolor{gray!110}0.513 \\ 
  McCain '08 & 0.175 & -0.031 & \cellcolor{gray!30}-0.210 & \cellcolor{gray!110}0.578 & -0.007 & 0.161 & -0.400 & -0.142 & -0.132 & \cellcolor{gray!30}-0.346 & \cellcolor{gray!30}-0.289 & \cellcolor{gray!110}0.634 & 0.104 & -0.093 & -0.086 & -0.035 & \cellcolor{gray!30}-0.217 & 0.144 & \cellcolor{gray!110}0.602 & \cellcolor{gray!60}-0.557 \\ 
  Ayotte '10 & 1.000 & \cellcolor{gray!30}-0.353 & \cellcolor{gray!60}-0.487 & \cellcolor{gray!80}0.272 & -0.042 & 0.013 & -0.199 & 0.087 & -0.012 & \cellcolor{gray!30}-0.265 & 0.115 & 0.102 & 0.146 & 0.146 & -0.095 & 0.081 & 0.071 & -0.170 & 0.166 & -0.130 \\ 
  Binnie '10 & \cellcolor{gray!30}-0.353 & 1.000 & \cellcolor{gray!60}-0.477 & 0.039 & -0.001 & \cellcolor{gray!30}-0.293 & 0.197 & \cellcolor{gray!30}-0.263 & \cellcolor{gray!110}0.525 & 0.036 & \cellcolor{gray!30}-0.321 & 0.081 & -0.099 & -0.127 & 0.088 & -0.117 & \cellcolor{gray!30}-0.206 & \cellcolor{gray!80}0.303 & 0.048 & -0.153 \\ 
  Lamontagne '10 & \cellcolor{gray!60}-0.487 & \cellcolor{gray!60}-0.477 & 1.000 & \cellcolor{gray!30}-0.338 & 0.048 & \cellcolor{gray!80}0.215 & 0.023 & 0.194 & \cellcolor{gray!30}-0.332 & 0.132 & 0.170 & \cellcolor{gray!30}-0.227 & 0.007 & 0.082 & 0.066 & 0.044 & 0.078 & -0.091 & \cellcolor{gray!30}-0.253 & \cellcolor{gray!80}0.291 \\ 
  Huntsman '12 & \cellcolor{gray!80}0.272 & 0.039 & \cellcolor{gray!30}-0.338 & 1.000 & -0.115 & -0.021 & \cellcolor{gray!60}-0.424 & \cellcolor{gray!30}-0.339 & 0.089 & \cellcolor{gray!60}-0.528 & \cellcolor{gray!30}-0.226 & \cellcolor{gray!110}0.602 & 0.166 & 0.000 & -0.185 & -0.177 & -0.046 & 0.123 & \cellcolor{gray!110}0.723 & \cellcolor{gray!60}-0.711 \\ 
  Romney '12 & -0.042 & -0.001 & 0.048 & -0.115 & 1.000 & \cellcolor{gray!30}-0.218 & \cellcolor{gray!60}-0.710 & \cellcolor{gray!30}-0.379 & -0.013 & -0.103 & \cellcolor{gray!30}-0.218 & 0.092 & \cellcolor{gray!80}0.324 & 0.022 & 0.085 & \cellcolor{gray!30}-0.207 & 0.076 & \cellcolor{gray!80}0.264 & \cellcolor{gray!80}0.302 & \cellcolor{gray!30}-0.267 \\ 
  Gingrich '12 & 0.013 & \cellcolor{gray!30}-0.293 & \cellcolor{gray!80}0.215 & -0.021 & \cellcolor{gray!30}-0.218 & 1.000 & -0.106 & -0.026 & \cellcolor{gray!30}-0.217 & 0.010 & -0.016 & -0.017 & 0.149 & 0.014 & -0.109 & 0.129 & 0.081 & -0.108 & -0.059 & 0.092 \\ 
  Paul '12 & -0.199 & 0.197 & 0.023 & \cellcolor{gray!60}-0.424 & \cellcolor{gray!60}-0.710 & -0.106 & 1.000 & 0.199 & 0.153 & \cellcolor{gray!80}0.380 & \cellcolor{gray!80}0.258 & \cellcolor{gray!60}-0.407 & \cellcolor{gray!60}-0.467 & 0.021 & -0.028 & 0.196 & -0.106 & -0.182 & \cellcolor{gray!60}-0.616 & \cellcolor{gray!110}0.538 \\ 
  Santorum '12 & 0.087 & \cellcolor{gray!30}-0.263 & 0.194 & \cellcolor{gray!30}-0.339 & \cellcolor{gray!30}-0.379 & -0.026 & 0.199 & 1.000 & \cellcolor{gray!30}-0.273 & \cellcolor{gray!80}0.229 & \cellcolor{gray!80}0.315 & \cellcolor{gray!30}-0.239 & -0.125 & -0.094 & \cellcolor{gray!80}0.205 & \cellcolor{gray!80}0.204 & 0.037 & \cellcolor{gray!30}-0.271 & \cellcolor{gray!60}-0.404 & \cellcolor{gray!110}0.442 \\ 
  Bush '16 & -0.012 & \cellcolor{gray!110}0.525 & \cellcolor{gray!30}-0.332 & 0.089 & -0.013 & \cellcolor{gray!30}-0.217 & 0.153 & \cellcolor{gray!30}-0.273 & 1.000 & \cellcolor{gray!30}-0.251 & -0.175 & -0.137 & 0.026 & 0.192 & -0.056 & -0.138 & -0.038 & 0.158 & 0.089 & -0.199 \\ 
  Trump '16 & \cellcolor{gray!30}-0.265 & 0.036 & 0.132 & \cellcolor{gray!60}-0.528 & -0.103 & 0.010 & \cellcolor{gray!80}0.380 & \cellcolor{gray!80}0.229 & \cellcolor{gray!30}-0.251 & 1.000 & 0.031 & \cellcolor{gray!60}-0.608 & \cellcolor{gray!30}-0.338 & -0.176 & \cellcolor{gray!80}0.222 & \cellcolor{gray!80}0.276 & -0.059 & -0.200 & \cellcolor{gray!60}-0.630 & \cellcolor{gray!110}0.634 \\ 
  Cruz '16 & 0.115 & \cellcolor{gray!30}-0.321 & 0.170 & \cellcolor{gray!30}-0.226 & \cellcolor{gray!30}-0.218 & -0.016 & \cellcolor{gray!80}0.258 & \cellcolor{gray!80}0.315 & -0.175 & 0.031 & 1.000 & \cellcolor{gray!60}-0.459 & -0.176 & 0.053 & -0.024 & 0.071 & 0.055 & \cellcolor{gray!30}-0.210 & \cellcolor{gray!30}-0.394 & \cellcolor{gray!110}0.413 \\ 
  Kasich '16 & 0.102 & 0.081 & \cellcolor{gray!30}-0.227 & \cellcolor{gray!110}0.602 & 0.092 & -0.017 & \cellcolor{gray!60}-0.407 & \cellcolor{gray!30}-0.239 & -0.137 & \cellcolor{gray!60}-0.608 & \cellcolor{gray!60}-0.459 & 1.000 & -0.023 & -0.083 & -0.200 & \cellcolor{gray!30}-0.233 & -0.062 & \cellcolor{gray!80}0.298 & \cellcolor{gray!110}0.749 & \cellcolor{gray!60}-0.729 \\ 
  Rubio '16 & 0.146 & -0.099 & 0.007 & 0.166 & \cellcolor{gray!80}0.324 & 0.149 & \cellcolor{gray!60}-0.467 & -0.125 & 0.026 & \cellcolor{gray!30}-0.338 & -0.176 & -0.023 & 1.000 & 0.070 & 0.063 & -0.130 & 0.140 & 0.011 & \cellcolor{gray!80}0.393 & \cellcolor{gray!30}-0.374 \\ 
  Bolduc '20 & 0.146 & -0.127 & 0.082 & 0.000 & 0.022 & 0.014 & 0.021 & -0.094 & 0.192 & -0.176 & 0.053 & -0.083 & 0.070 & 1.000 & \cellcolor{gray!60}-0.747 & \cellcolor{gray!80}0.342 & -0.160 & \cellcolor{gray!30}-0.295 & -0.040 & 0.023 \\ 
  Messner '20 & -0.095 & 0.088 & 0.066 & -0.185 & 0.085 & -0.109 & -0.028 & \cellcolor{gray!80}0.205 & -0.056 & \cellcolor{gray!80}0.222 & -0.024 & -0.200 & 0.063 & \cellcolor{gray!60}-0.747 & 1.000 & -0.138 & 0.121 & 0.054 & -0.147 & 0.159 \\ 
  Bolduc '22 & 0.081 & -0.117 & 0.044 & -0.177 & \cellcolor{gray!30}-0.207 & 0.129 & 0.196 & \cellcolor{gray!80}0.204 & -0.138 & \cellcolor{gray!80}0.276 & 0.071 & \cellcolor{gray!30}-0.233 & -0.130 & \cellcolor{gray!80}0.342 & -0.138 & 1.000 & \cellcolor{gray!30}-0.318 & \cellcolor{gray!60}-0.734 & \cellcolor{gray!30}-0.367 & \cellcolor{gray!80}0.377 \\ 
  Smith '22 & 0.071 & \cellcolor{gray!30}-0.206 & 0.078 & -0.046 & 0.076 & 0.081 & -0.106 & 0.037 & -0.038 & -0.059 & 0.055 & -0.062 & 0.140 & -0.160 & 0.121 & \cellcolor{gray!30}-0.318 & 1.000 & -0.166 & 0.023 & 0.010 \\ 
  Morse '22 & -0.170 & \cellcolor{gray!80}0.303 & -0.091 & 0.123 & \cellcolor{gray!80}0.264 & -0.108 & -0.182 & \cellcolor{gray!30}-0.271 & 0.158 & -0.200 & \cellcolor{gray!30}-0.210 & \cellcolor{gray!80}0.298 & 0.011 & \cellcolor{gray!30}-0.295 & 0.054 & \cellcolor{gray!60}-0.734 & -0.166 & 1.000 & \cellcolor{gray!80}0.305 & \cellcolor{gray!30}-0.341 \\ 
  Haley '24 & 0.166 & 0.048 & \cellcolor{gray!30}-0.253 & \cellcolor{gray!110}0.723 & \cellcolor{gray!80}0.302 & -0.059 & \cellcolor{gray!60}-0.616 & \cellcolor{gray!60}-0.404 & 0.089 & \cellcolor{gray!60}-0.630 & \cellcolor{gray!30}-0.394 & \cellcolor{gray!110}0.749 & \cellcolor{gray!80}0.393 & -0.040 & -0.147 & \cellcolor{gray!30}-0.367 & 0.023 & \cellcolor{gray!80}0.305 & 1.000 & \cellcolor{gray!60}-0.984 \\ 
  Trump '24 & -0.130 & -0.153 & \cellcolor{gray!80}0.291 & \cellcolor{gray!60}-0.711 & \cellcolor{gray!30}-0.267 & 0.092 & \cellcolor{gray!110}0.538 & \cellcolor{gray!110}0.442 & -0.199 & \cellcolor{gray!110}0.634 & \cellcolor{gray!110}0.413 & \cellcolor{gray!60}-0.729 & \cellcolor{gray!30}-0.374 & 0.023 & 0.159 & \cellcolor{gray!80}0.377 & 0.010 & \cellcolor{gray!30}-0.341 & \cellcolor{gray!60}-0.984 & 1.000 \\ 
   \hline
\end{tabular}
\end{scriptsize}
}
\caption{Pearson correlations between Republican candidate vote shares in New Hampshire primaries. N=299-301 precincts.} 
\label{f:nh}
\end{table}
